﻿import QtQuick 2.9
import QtQuick.Controls 2.2

ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Downloader progress")

    ScrollView {
        id: scroll
        anchors.fill: parent

        ListView {
            width: scroll.width
            model: myModel
            delegate: ItemDelegate {
                text: myModel.getText(index)
                width: scroll.width

                MyProgressBar {
                    width: scroll.width
                    value: myModel.getValue(index)
                    opacity:0.8
                }
            }
        }
    }
}
